package org.fuxian.dao;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.fuxian.domain.MyEmp;

public interface MyEmpMapper {
    @Select("select * from myemp where ename = #{ename} and epsw = #{epsw}")
    public MyEmp login(@Param("ename") String ename, @Param("epsw") String
            epsw);

    @Select("select * from myemp where ename = #{ename}")
    public MyEmp findByEname(@Param("ename") String ename);
}
